import request from '@/utils/request'
//同步加入购物车
export const addToCartApi=(token:string,cart:any)=>request({
   url:'/api/carts',
   method:'PUT',
   headers:{
      Authorization: 'Bearer '+token
  },
  data:{
   cart,


  }
  
  
})
//获取用户已有购物车
export const alreadyHasCart=(token:string)=>request({
   url:'/api/carts',
   headers:{
      Authorization: 'Bearer '+token

   }
})
